package servlets;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Home extends HttpServlet {

	private static final long serialVersionUID = 3214690652439105076L;


	protected void doGet (HttpServletRequest req,HttpServletResponse resp) throws ServletException, IOException{
		req.setAttribute("user","Holaaa");
		req.getRequestDispatcher("/WEB-INF/jsp/home.jsp").forward(req, resp);
	}

	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doGet(req, resp);
	}
	
}